const { defineConfig } = require("@vue/cli-service");
const path = require("path");
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: (config) => {
    // alias 别名 写路径减少相对路径的出现
    config.resolve.alias
      .set("@", path.resolve(__dirname, "./src"))
      .set("@views", path.resolve(__dirname, "./src/views"))
      .set("@styles", path.resolve(__dirname, "./src/styles"))
      .set("@service", path.resolve(__dirname, "./src/service"))
      .set("@axios", path.resolve(__dirname, "./src/utils/axios"));
  },
});
